
package org.icnmasjid.member.dao;

import java.util.List;

import org.icnmasjid.member.dao.Dao;
import org.icnmasjid.member.model.Login;

public interface LoginDao extends Dao {

    /**
     * Retrieves all of the logins
     */
    public List getLogins(Login login);

    /**
     * Gets login's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the login's id
     * @return login populated login object
     */
    public Login getLogin(final Integer id);

    /**
     * Saves a login's information
     * @param login the object to be saved
     */    
    public void saveLogin(Login login);

    /**
     * Removes a login from the database by id
     * @param id the login's id
     */
    public void removeLogin(final Integer id);
}

